package com.miyouke.chat.entity.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author Administrator
 */

@AllArgsConstructor
@Getter
public enum TrueFalseEnum {

    TRUE(1,"是"),
    FALSE(0,"否");;

    private Integer code;
    private String desc;

    public static boolean contents(Integer isAccept) {

        if(isAccept == 0 || isAccept == 1){
            return true;
        }
        return false;
    }
}
